package com.rainbow.autocode.entity;

import java.util.List;

/**
 * 表数据
 *
 * @author fuweidi
 * @email 1335157415@qq.com
 * @date 2016年12月20日 上午12:02:55
 */
public class TableEntity {
	//表的名称
	private String tableName;
	//表的备注
	private String comments;
	//表的主键
	private ColumnEntity pk;
	//表的列名包含主键
	private List<ColumnEntity> columns;

	//类名(第一个字母大写)，如：sys_user => SysUser
	private String className;
	//类名(第一个字母小写)，如：sys_user => sysUser
	private String classname;
	//表的列名,不含主键
	private List<ColumnEntity> colRows;

	//生成表的别名,支持自定义指定类的名字
	private String pojo;

	//含有枚举的列
	private List<ColumnEntity> enumRows;

	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public ColumnEntity getPk() {
		return pk;
	}
	public void setPk(ColumnEntity pk) {
		this.pk = pk;
	}
	public List<ColumnEntity> getColumns() {
		return columns;
	}
	public void setColumns(List<ColumnEntity> columns) {
		this.columns = columns;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getClassname() {
		return classname;
	}
	public void setClassname(String classname) {
		this.classname = classname;
	}
	public List<ColumnEntity> getColRows() {
		return colRows;
	}

	public void setColRows(List<ColumnEntity> colRows) {
		this.colRows = colRows;
	}

	public String getPojo() {
		return pojo;
	}

	public void setPojo(String pojo) {
		this.pojo = pojo;
	}

	public List<ColumnEntity> getEnumRows() {
		return enumRows;
	}

	public void setEnumRows(List<ColumnEntity> enumRows) {
		this.enumRows = enumRows;
	}
}
